package StudyCode.summary.mycollection;

import java.util.ArrayList;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class CreateAnArrayListAndAddElements {
	public static void main(String[] args) {
		ArrayList arrayList = new ArrayList();

		arrayList.add("1");
		arrayList.add("2");
		arrayList.add("3");

		System.out.println("获取 ArrayList 的元素");
		System.out.println(arrayList.get(0));
		System.out.println(arrayList.get(1));
		System.out.println(arrayList.get(2));
	}
}
